#include "StateSynchronization.h"
#include <QDebug>

StateSynchronization::StateSynchronization(OSCthulhuServer *server) {
    this->waitTime = 3;
    this->server = server;
    this->start();
}
void StateSynchronization::run() {
    while(true) {
        server->sendStatesync();
        sleep(waitTime);
    }
    exec();
}
